package com.rx.entity;

import java.util.Date;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

/**
 * 基础实体
 * 
 * @author Renxin
 * 
 */
@MappedSuperclass
public abstract class BaseEntity {

	/* 主键 */
	protected Long id;
	/* 名称 */
	protected String name;
	/* 编号 */
	protected String code;
	/* 序号 */
	protected Long indexOrder;
	/* 创建人 */
	protected String createUser;
	/* 创建时间 */
	protected Date createDate;
	/* 修改人 */
	protected String updateUser;
	/* 修改时间 */
	protected Date updateDate;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Long getIndexOrder() {
		return indexOrder;
	}

	public void setIndexOrder(Long indexOrder) {
		this.indexOrder = indexOrder;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

}
